import { defHttp } from '/@/utils/http/axios';

enum Api {
  loginfo = '/sys/loginfo',
  visitInfo = '/sys/visitInfo',
  baseAndPlot = '/dashboard/analysis/baseAndPlot',
  growPlanData = '/dashboard/analysis/growPlanData',
  productScheduleData = '/dashboard/analysis/productScheduleData',
  productScheduleTask = '/dashboard/analysis/productScheduleTask',
  inspectionData = '/dashboard/analysis/inspectionData',
  iotData = '/dashboard/analysis/iotData',
  qrcodeData = '/dashboard/analysis/qrcodeData',
  storageAndTransport = '/dashboard/analysis/storageAndTransport'
}
/**
 * 日志统计信息
 * @param params
 */
export const getLoginfo = (params) => defHttp.get({ url: Api.loginfo, params }, { isTransformResponse: false });
/**
 * 访问量信息
 * @param params
 */
export const getVisitInfo = (params) => defHttp.get({ url: Api.visitInfo, params }, { isTransformResponse: false });
/**
 * 基本信息统计
 * @param params
 */
export const getBaseAndPlot = () => defHttp.get({ url: Api.baseAndPlot }, { isTransformResponse: false });
/**
 * 种植计划统计
 * @param params
 */
export const getGrowPlanData = () => defHttp.get({ url: Api.growPlanData }, { isTransformResponse: false });
/**
 * 排产计划统计
 * @param params
 */
export const getProductScheduleData = () => defHttp.get({ url: Api.productScheduleData }, { isTransformResponse: false });
/**
 * 农事操作统计
 * @param params
 */
export const getProductScheduleTask = () => defHttp.get({ url: Api.productScheduleTask }, { isTransformResponse: false });
/**
 * 检验检测统计
 * @param params
 */
export const getInspectionData = () => defHttp.get({ url: Api.inspectionData }, { isTransformResponse: false });
/**
 * 物联网统计
 * @param params
 */
export const getIotData = () => defHttp.get({ url: Api.iotData }, { isTransformResponse: false });
/**
 * 二维码统计
 * @param params
 */
export const getQrcodeData = () => defHttp.get({ url: Api.qrcodeData }, { isTransformResponse: false });
/**
 * 仓储运输统计
 * @param params
 */
export const getStorageAndTransport = () => defHttp.get({ url: Api.storageAndTransport }, { isTransformResponse: false });
